package pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.groups.ConvertGroup;
import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable {
    private String name;
    private String author;
    private String page;
    private Date date;

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", page='" + page + '\'' +
                ", date=" + date +
                '}';
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }
}
